package com.yc.game.cms.dao;

import com.yc.game.cms.pojo.Training;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TrainingMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Training record);

    int insertSelective(Training record);

    Training selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Training record);

    int updateByPrimaryKey(Training record);

    int getByEmailAndTrainingId(@Param("email") String email, @Param("trainingId") Integer trainingId);

    List<Training> getAll();
}